package com.msb.service;

import com.msb.pojo.FcBuilding;
import com.msb.pojo.FcCell;
import com.msb.pojo.FcEstate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.pojo.FcUnit;
import com.msb.response.R;
import com.msb.vo.CellMessage;
import com.msb.vo.UnitMessage;

import java.util.List;

/**
 * <p>
 * 楼盘信息 服务类
 * </p>
 *
 * @author chshh
 * @since 2022-10-20
 */
public interface FcEstateService extends IService<FcEstate> {
    public R selectBuilding(Integer buildingNumber, String estateCode);
    Integer updateBuilding(FcBuilding fcBuilding);
    List<FcUnit> selectUnit(UnitMessage unitMessage);
    Integer updateUnit(FcUnit fcUnit);
    List<FcCell> insertCell(CellMessage cellMessage);
    List<FcBuilding> selectBuildingByEstate(String estateCode);
    List<FcUnit> selectUnitByBuildingCode(String buildingCode);
    List<FcCell> selectCell(String unitCode);

    List<FcEstate> selectEstate(String company);

    List<FcEstate> selectAllEstate();
    public List<FcBuilding> selectBuildingByEstateCode(String estateCode);

    FcBuilding selectBuildingByEstateCodeAndBuildingCode(String estateCode,String buildingCode);
}
